package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@ApiModel
public class StudyModelDTO {

    @NotNull(message = "是否为学习模式字段不可以为空")
    @Range(min = 0,max = 1,message = "是否为学习模式字段只能为1或0")
    @ApiModelProperty(value = "是否为学习模式:1,是；0，否")
    private Integer isStudy;

    public StudyModelDTO() {
    }

    public Integer getIsStudy() {
        return isStudy;
    }

    public void setIsStudy(Integer isStudy) {
        this.isStudy = isStudy;
    }
}
